//
//  MKMarketActivityObject.m
//  YangDongXi
//
//  Created by cocoa on 15/6/4.
//  Copyright (c) 2015年 yangdongxi. All rights reserved.
//

#import "MKMarketActivityObject.h"

@implementation MKMarketActivityObject

+ (NSDictionary *)propertyAndKeyMap
{
    return @{
             @"activityUid" : @"activity_uid",
             @"activityName" : @"activity_name",
             @"couponMark" : @"coupon_mark",
             @"discountAmount" : @"discount_amount",
             @"toolCode" : @"tool_code",
             @"properties" : @"property_list",
             @"targetItemList":@"target_item_list",
             @"itemList":@"item_list"
             };
}

+ (Class)classForArrayItemWithName:(NSString *)propertyName andIndex:(NSInteger)index
{
    if ([propertyName isEqualToString:@"properties"])
    {
        return [MKPropertyObject class];
    }
    if ([propertyName isEqualToString:@"targetItemList"]) {
        return [MKMarketItem class];
    }
    if ([propertyName isEqualToString:@"itemList"]) {
        return [MKMarketItem class];
    }
    
    return nil;
}

@end
